package com.crm.model.jdao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.crm.model.pojo.SalesOpportunity;
import com.crm.model.pojo.SalesOpportunityTrackingLog;
import com.crm.model.pojo.Solution;

public interface ISalesTrackingLogDAO extends CrudRepository<SalesOpportunityTrackingLog,Integer>  {

	/**
	 * 查询所有销售机会跟踪日志
	 * @return
	 */
	@Query("SELECT s FROM SalesOpportunityTrackingLog s where s.salesOpportunity.salId=?1")
	public List<SalesOpportunityTrackingLog> queryBySalId(int salId);
	
	
}
